import { createApp } from 'vue'
import App from './App.vue'
import { setupStore } from '@/store'
import { setupRouter } from '@/router'
import { setupComponents } from '@/components'
import { setupExpand } from '@/utils/expand'
import { setupMixin } from '@/utils/mixin'
import { setupFunctional } from '@/utils/functional/index'

function bootstrap() {
  const app = createApp(App)

  // 配置存储
  setupStore(app)

  // 配置路由
  setupRouter(app)

  // 配置全局组件
  setupComponents(app)

  // 配置第三方库
  setupExpand(app)

  // 配置mixin
  setupMixin(app)

  // 配置函数式组件
  setupFunctional(app)

  app.mount('#app')
}

bootstrap()

import '@/styles/index.scss' // 配置全局样式 放在第三方库后面 避免样式污染
